package com.bugpool.leilema.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bugpool.leilema.product.entity.ProductInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author bugpool
 * @since 2020-04-14
 */
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {
    @Select("select * from product_info where product_name like concat(concat('%',#{productName}),'%') ")
    List<ProductInfo> getByLikeName(String productName);
}
